package com.gran.mydemo.myview;

import com.replaceapkdemo.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class PictureUnderText extends LinearLayout{
	private ImageView im;
	private TextView tx;
	
	public PictureUnderText(Context context) {
		super(context);
		
		LayoutInflater inf=LayoutInflater.from(context);
		inf.inflate(R.layout.widget_pictureundertext, this);
		im=(ImageView) findViewById(R.id.image_picundertext);
		tx=(TextView) findViewById(R.id.text_picundertext);
	}
	
	public void setText(String title){
		tx.setText(title);
	}
	
	public void setImage(int id){
		im.setBackgroundResource(id);
	}

}
